/**
 * 
 */
package com.feib.stms.action;

import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;

import com.feib.stms.model.User;

/**
 * @title (#)Login.java<br>
 * @description 系統登入 Controller<br>
 * @author Jimmy Liu<br>
 * @version 1.0.0 2012/04/19
 * @copyright Far Eastern International Bank Copyright (c) 2012<br>
 * @2012/04/19 create by Jimmy Liu<br>
 */
public class LoginActionBean  extends BaseActionBean 
{
	private static final long serialVersionUID = -2561772315793644874L;

    private static final String DEFAULT_JSP = "/login.jsp";
	
	private User user;
	
	/**
	 * 登入類型
	 */
	private String loginType;
	
	/**
	 * spring security 的帳號
	 */
	private String j_username;
	
	/**
	 * 密碼
	 */
	private String j_password;
	
	/**
	 * 驗證碼
	 */
	private String j_captcha_response;
	
    @DefaultHandler
    public Resolution doDefault()
    {
        logger.debug("Enter doDefault mehtod.");
        return new ForwardResolution(DEFAULT_JSP); 
    }

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getLoginType() {
		return loginType;
	}

	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}

	public String getJ_captcha_response() {
		return j_captcha_response;
	}

	public void setJ_captcha_response(String j_captcha_response) {
		this.j_captcha_response = j_captcha_response;
	}

	public String getJ_password() {
		return j_password;
	}

	public void setJ_password(String j_password) {
		this.j_password = j_password;
	}

	public String getJ_username() {
		return j_username;
	}

	public void setJ_username(String j_username) {
		this.j_username = j_username;
	}

}
